#include "dockerimage.h"

DockerImage::DockerImage(const QJsonObject &obj) : DockerOutputJson(obj)
{
    m_containers   = obj.value("Containers").toString();
    m_createdAt    = obj.value("CreatedAt").toString();
    m_createdSince = obj.value("CreatedSince").toString();
    m_digest       = obj.value("Digest").toString();
    m_id           = obj.value("ID").toString();
    m_repository   = obj.value("Repository").toString();
    m_sharedSize   = obj.value("SharedSize").toString();
    m_size         = obj.value("Size").toString();
    m_tag          = obj.value("Tag").toString();
    m_uniqueSize   = obj.value("UniqueSize").toString();
    m_virtualSize  = obj.value("VirtualSize").toString();
}

QString DockerImage::containers() const
{
    return m_containers;
}

QString DockerImage::createdAt() const
{
    return m_createdAt;
}

QString DockerImage::createdSince() const
{
    return m_createdSince;
}

QString DockerImage::digest() const
{
    return m_digest;
}

QString DockerImage::id() const
{
    return m_id;
}

QString DockerImage::repository() const
{
    return m_repository;
}

QString DockerImage::sharedSize() const
{
    return m_sharedSize;
}

QString DockerImage::size() const
{
    return m_size;
}

QString DockerImage::tag() const
{
    return m_tag;
}

QString DockerImage::uniqueSize() const
{
    return m_uniqueSize;
}

QString DockerImage::virtualSize() const
{
    return m_virtualSize;
}
